package com.builder.inputeditor.fieldtypefields;

import com.builder.inputeditor.InputFieldPanel;
import java.util.List;
import javax.swing.JPanel;

/**
 * @author Dmitry
 */
public abstract class AbstractFieldParams {
    private final String type;
    protected InputFieldPanel parent;

    public void setParent(InputFieldPanel parent) {
        this.parent = parent;
    }

    public String getType() {
        return type;
    }

    public AbstractFieldParams(String type) {
        this.type = type;
    }

    public abstract void serialize();

    public abstract void deserialize();

    public abstract void init(JPanel holder, List<InputFieldPanel> fields);

}
